home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / SM Notepad Options 1.xpl < prev    next >
Text File  |  2002-10-24  |  2KB  |  78 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Program Options\Built in Windows Apps\Notepad"
  5. "NAME"="Notepad Options"
  6. "VERSION"="1.40"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable word-wrap by default"
  9. "TEXT 2"="Set default font style: Strike-Through"
  10. "TEXT 3"="Set default font style: Underline"
  11. "TEXT 4"="Remember last used Printer Page Setup"
  12. "DESCRIPTION 1"="Some options for Notepad."
  13. "AUTHOR"="SΘbastien MAURICE / Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ SΘbastien MAURICE / Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="... Used with permission "
  16.  
  17.  
  18. sV1="HKCU\Software\Microsoft\Notepad\fWrap"
  19. sV2="HKCU\Software\Microsoft\Notepad\lfStrikeOut"
  20. sV3="HKCU\Software\Microsoft\Notepad\lfUnderline"
  21. sV4="HKCU\Software\Microsoft\Notepad\fSavePageSettings"
  22.  
  23. Sub Plugin_Initialize 
  24.  i=RegReadValue(sV1)
  25.  if i=1 then SetUIElement 1,true
  26.  
  27.  i=RegReadValue(sV2)
  28.  if i=1 then SetUIElement 2,true
  29.  
  30.  i=RegReadValue(sV3)
  31.  if i=1 then SetUIElement 3,true
  32.  
  33.  i=RegReadValue(sV4)
  34.  if i=1 then SetUIElement 4,true
  35.  
  36.  
  37.  
  38. End Sub
  39.  
  40.  
  41. Sub Plugin_CheckData(ElementIndex)
  42. End Sub
  43.  
  44.  
  45.  
  46. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  47.  if GetUIElement(1)=true then
  48.     Call RegWriteValue(sV1,"1",2)
  49.  else
  50.     Call RegWriteValue(sV1,"0",2)
  51.  end if
  52.  
  53.  if GetUIElement(2)=true then
  54.     Call RegWriteValue(sV2,"1",2)
  55.  else
  56.     Call RegWriteValue(sV2,"0",2)
  57.  end if
  58.  
  59.  if GetUIElement(3)=true then
  60.     Call RegWriteValue(sV3,"1",2)
  61.  else
  62.     Call RegWriteValue(sV3,"0",2)
  63.  end if
  64.  
  65.  if GetUIElement(4)=true then
  66.     Call RegWriteValue(sV4,"1",2)
  67.  else
  68.     Call RegWriteValue(sV4,"0",2)
  69.  end if
  70. End Sub
  71.  
  72.  
  73. Sub Plugin_Terminate 
  74. End Sub
  75.  
  76.  
  77.  
  78.